package com.example.onedemotest;

import com.example.onedemotest.slice.*;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.aafwk.content.Operation;
import ohos.agp.components.Button;
import ohos.agp.components.Component;

//这是一个 page
public class SecondAbility extends Ability {
    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        //主要路由
        setMainRoute(SecondPageSlice.class.getName());
        addActionRoute("action_list_demo",ListSliceDemo.class.getName());
        addActionRoute("intent_action_tabList", TabListSlice.class.getName());
        addActionRoute("intent_action_pageSlider", PageSliderSlice.class.getName());
        addActionRoute("intent_action_custom_component", CustomComponentSlice.class.getName());
        addActionRoute("intent_action_adaptiveboxlayout", AdaptiveBoxLayoutSlice.class.getName());

    }
}
